<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'updateCourse.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<s:head />
	</head>

	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<center>
			<h1>
				<font color="red">修改课程班</font>
			</h1>
			<s:form action="updateCourse">
				<input type="hidden" name="course.courseId"
					value="<s:property value='course.courseId' />" />
				<table>
					<tr>
						<td>

							${student.college}
							<s:textfield name="course.name" label="课程名称"></s:textfield>
						</td>
					</tr>
					<!--
					<tr>
						<td>
							<s:textfield name="course.startTime" label="课程开始日期"></s:textfield>
						</td>
					</tr>

					<tr>
						<td>
							<s:textfield name="course.endTime" label="课程结束日期"></s:textfield>

						</td>
					</tr>

					-->
					<s:datetimepicker label="课程开始日期" name="course.startTime"
						type="date" displayFormat="yyyy-MM-dd" displayWeeks="5" />
					<s:datetimepicker label="课程结束日期" name="course.endTime" type="date"
						displayFormat="yyyy-MM-dd" displayWeeks="5" />
					<tr>

						<td>
							<s:textfield name="course.classHour" label="学时"></s:textfield>

						</td>
					</tr>


					<tr>
						<td>
							<s:submit value="更新"></s:submit>
						</td>
					</tr>
				</table>
			</s:form>
		</center>
		<p>
			点击
			<a href="javascript:history.go(-1);">返回</a>上一页面
		</p>
	</body>
</html>
